package com.sright.bcard.common.service.share.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 分页查询
 */
@Data
public class VisitorPageResponse implements Serializable {
    private static final long serialVersionUID = 5808016014112017965L;

    /**
     * id
     */
    private Long id;

    /**
     * 微信昵称
     */
    private String nickname;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 访客用户id
     */
    private Long visitorEnterpriseUserId;

    private Long visitorPersonalUserId;

    private Long visitorMemberId;

    private String mobile;

    private Integer total;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastVistorAt;

    private Integer time;

    private String fontColor;

    private List<Relation> relation;

    @Data
    public static class Relation implements Serializable{
        private static final long serialVersionUID = -3210492786444513507L;
        private Long memberId;

        private String avatar;
    }
}
